
package cn.afterturn.oneopen.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 账户流水号
 *
 * @author JueYue
 * @Date 2019-03-24 13:41:57
 */
@Data
@TableName(value = "gw_account_flow")
public class AccountFlowModel extends Model<AccountFlowModel> {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @TableField(value = "account_no", strategy = FieldStrategy.NOT_EMPTY)
    private String accountNo;

    @TableField(value = "trade_no", strategy = FieldStrategy.NOT_EMPTY)
    private String tradeNo;

    @TableField(value = "trade_time")
    private Date tradeTime;

    @TableField(value = "subject", strategy = FieldStrategy.NOT_EMPTY)
    private String subject;

    @TableField(value = "outer_trade_no", strategy = FieldStrategy.NOT_EMPTY)
    private String outerTradeNo;

    @TableField(value = "memo", strategy = FieldStrategy.NOT_EMPTY)
    private String memo;

    @TableField(value = "currency")
    private Integer currency;

    @TableField(value = "money")
    private Integer money;

    @TableField(value = "fee")
    private Integer fee;

    @TableField(value = "real_money")
    private Integer realMoney;

    @TableField(value = "trade_info", strategy = FieldStrategy.NOT_EMPTY)
    private String tradeInfo;

    @TableField(value = "complete_time")
    private Date completeTime;

    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "balance")
    private Long balance;

    @TableField(value = "type", strategy = FieldStrategy.NOT_EMPTY)
    private String type;

    @TableField(value = "before_balance")
    private Long beforeBalance;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
